﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:XDCCManager_Model_Packs="clr-namespace:XDCCManager.Model.Packs" x:Name="userControl" x:Class="XDCCManager.Popups.PackEditor" 
             mc:Ignorable="d">
	<UserControl.DataContext>
		<XDCCManager_Model_Packs:EditedPack Description="Description" Note="Note"/>
	</UserControl.DataContext>
			<StackPanel Background="{Binding Background, ElementName=userControl}">
				<GroupBox Header="Edit pack">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="Auto"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition/>
						</Grid.ColumnDefinitions>
						<Label Content="Description" d:LayoutOverrides="Width, Height"/>
						<TextBox TextWrapping="Wrap" Text="{Binding Description}" d:LayoutOverrides="Width, Height" Grid.Column="1"/>
						<Label Content="Note" d:LayoutOverrides="Width, Height" Grid.Row="1"/>
						<TextBox TextWrapping="Wrap" Text="{Binding Note}" d:LayoutOverrides="Width, Height" Grid.Row="1" Grid.Column="1" VerticalScrollBarVisibility="Auto" MaxHeight="100"/>
					</Grid>
				</GroupBox>
				<UniformGrid HorizontalAlignment="Right" Rows="1">
					<Button Content="Remove" Click="Remove_Click"/>
					<Button Content="Cancel" Click="Cancel_Click"/>
					<Button Content="Ok" Click="Ok_Click"/>
				</UniformGrid>
			</StackPanel>
</UserControl>
